import { Application } from "egg";
import CodoMQ from "../lib/mq";

export default class CodoCodoMQ {
    constructor(private app: Application) { }
    /** 消息队列库 */
    CodoMQ = CodoMQ;

    /** 获取一个队列实例，注意不是单例，每次获取都是新实例 */
    getCodoMQ(namespace: string) {
        return new CodoMQ(this.app, namespace)
    }
}